package com.haredot.dto;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class PermissionTree implements Serializable {
    @Serial
    private static final long serialVersionUID = 3737307818056182930L;
    /**
     * 节点ID
     */
    private String id ;
    /**
     * 节点名
     */
    private String title ;
    /**
     * 节点勾选状态
     */
    private boolean checked ;
    /**
     * 节点级别
     */
    private Integer level ;
    /**
     * 节点对应的数据真实ID
     */
    private Long tid ;
    /**
     * 是否展开节点
     */
    private boolean expand = true ;

    private List<PermissionTree> children ;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    public List<PermissionTree> getChildren() {
        return children;
    }

    public void setChildren(List<PermissionTree> children) {
        this.children = children;
    }
}
